﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CNTVNow.Web.Models
{
    public class SingletonContext
    {
        private static CntvDataContext cntvContext;
        public static CntvDataContext CntvContext
        {
            get
            {
                if (cntvContext == null) cntvContext = new CntvDataContext();
                return cntvContext;
            }
        }

        private static NewsModel newsModel;
        public static NewsModel NewsModelInstance
        {
            get
            {
                if (newsModel == null) newsModel = new NewsModel();
                return newsModel;
            }
        }
    }
}